import request from '@/config/axios'

export const assuranceList = async (params) => {
  return await request.get({
    url: '/amp/data-assurance-conf/list',
    params
  })
}

export const assurancePage = async (params) => {
  return await request.get({
    url: '/amp/data-assurance-conf/page',
    params
  })
}

export const assuranceUpdateBatch = async (data) => {
  return await request.put({
    url: '/amp/data-assurance-conf/updateBatch',
    data
  })
}
//获得关联字段
export const assuranceRelevanceTree = async (params) => {
  return await request.get({
    url: '/amp/data-assurance-conf/relevanceTree',
    params
  })
}
//获得关联字段
export const assuranceExportExcel = async (params) => {
  return await request.download({
    url: '/amp/data-assurance-conf/export-excel',
    params
  })
}

export const delCheck = async (id) => {
  return await request.delete({
    url: `/amp/data-assurance-value-conf/delete?id=${id}`
  })
}

export const importCheck = async (id) => {
  return await request.get({
    url: `/amp/data-assurance-value-conf/check-data?dataStandardId=${id}`
  })
}

export const exportCheck = async (id) => {
  return await request.download({
    url: `/amp/data-assurance-value-conf/export-excel?dataStandardId=${id}`
  })
}
